package com.smooth.site.sx.mag.biz.compcollege.comp.enums;

public enum IsCheckedEnums {
	checked(1, "选中"),
	unchecked(2, "未选中"),
	;

	public Integer value;
	public String name;

	IsCheckedEnums(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static IsCheckedEnums getStatus(Integer value) {
		if (value != null) {
			IsCheckedEnums[] otypes = IsCheckedEnums.values();
			for (IsCheckedEnums memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
